package com.aaa.power.controller;


import com.aaa.power.entity.DictType;
import com.aaa.power.service.DictTypeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 字典类型表(DictType)表控制层
 *
 * @author makejava
 * @since 2020-11-17 20:16:07
 */
@RestController
@RequestMapping("dictType")
public class DictTypeController {
    /**
     * 服务对象
     */
    @Resource
    private DictTypeService dictTypeService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public DictType selectOne(Integer id) {
        return this.dictTypeService.queryById(id);
    }

}